<?php

class AttachModel extends Model {
	
	protected $tableName = 'attach';

    /**
	 * 通过单个附件ID获取其附件信息
	 * @param integer $id 附件ID
	 * @return array 指定附件ID的附件信息
	 */
	public function getAttachById($id) {
		if(empty($id)) {
			return false;
		}
		$map['id'] = $id;
		$attachInfo = $this->where($map)->find();

		return $attachInfo;
	}
	
}
?>